package com.appspot.yusupova.verses;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManagerFactory;

final class PMF {
    
    private static PersistenceManagerFactory instance;
    
    private PMF() {
    }
    
    public static PersistenceManagerFactory get() {
        if (instance == null) {
            synchronized (PMF.class) {
                if (instance == null) {
                    instance = JDOHelper.getPersistenceManagerFactory("transactions-optional");
                }
            }
        }
        return instance;
    }

}
